package com.example.passport.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class RoleCreateDto {
    @NotBlank(message = "名字不能为空")
    private String name;
    @NotBlank(message = "说明不能为空")
    private String spec;
    @NotNull(message = "状态不能为空")
    private Integer status;
}
